package com.gxa.controller;

import com.gxa.common.R;
import com.gxa.common.ResponseData;
import com.gxa.pojo.Employee;
import com.gxa.service.AddressBookService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@Api(value = "登录test",tags = "登录接口API")
public class LoginController {
    @Autowired
    private AddressBookService addressBookService;
    @RequestMapping(value ="/Login",method = RequestMethod.POST)
    @ApiOperation(value = "登录",notes = "验证用户名和密码",httpMethod = "post",response = R.class)
    @ResponseBody
public ResponseData login(@RequestBody Employee employee){
      return addressBookService.login(employee);
  }
}
